dofile("libs/StylusBox2.lua")
dofile("libs/libColor.lua")
dofile("libs/libButton.lua")
dofile("libs/libCheckBox.lua")
dofile("libs/libKeyboard.lua")
dofile("libs/libNumericUpDown.lua")
dofile("libs/libProgressBar.lua")
dofile("libs/libWindow.lua")

CWS = { -- CWS = Complete Window System --
	init = function()
		local options = {
			true,
			false,
			false,
			false,
			false,
			false,
			false
		}
		
		CWS.mainWindow = Window.new(SCREEN_DOWN, 0, 0, 256, 192, "Main Window", "", c_blue, c_black, c_lightgrey, c_white, options, "")
		
		Window.add(CWS.mainWindow)
	end,
	
	
	
	display = function()
		Window.drawAll()
	end,
	
	clear = function()
		-- Controls --
		CWS.mainWindow:clear()
		-- Libs --
		StylusBox = nil
		Button = nil
		CheckBox = nil
		Keyboard = nil
		NumericUpDown = nil
		ProgressBar = nil
		Window = nil
		-- Other --
		CWS = nil
	end
}